package com.cxyd.modules.wms.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.cxyd.common.entity.WmsBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 入库主单
 *
 * @author g_Cycle gengruyi01@163.com
 * @since 1.0.0 2023-04-27
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("wms_purchase_bak")
public class PurchaseBakEntity extends WmsBaseEntity {
	/**
	 * id
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
    /**
     * id
     */
	private Long purchaseId;
    /**
     * 订单编号
     */
	private String purchaseNo;
	private String deliverNo;
    /**
     * 订单类型
     */
	private String purchaseType;
    /**
     * 所属系统
     */
	@TableField(fill = FieldFill.INSERT)
	private String belongSystem;
    /**
     * 供应商
     */
	private String supplierCode;
    /**
     * 所属仓库
     */
	private String supplierName;
	private String factoryCode;
	private String factoryName;
    /**
     * 订单状态(0-初始 1-收货中 2-收货完成 4-强制完成 9-废弃)
     */
	private Integer purchaseSt;
}